package com.hzp.micromall.auth.config;

import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import com.hzp.micromall.common.core.config.BaseSwaggerConfig;
import com.hzp.micromall.common.core.entity.SwaggerProperties;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @Author houzipeng
 * @Date 2022/2/10 22:05
 * @Version 1.0
 * Swagger API文档相关配置
 */
@Configuration
@EnableSwagger2
@EnableKnife4j
public class SwaggerConfig extends BaseSwaggerConfig {

    @Override
    public SwaggerProperties swaggerProperties() {
        return SwaggerProperties.builder()
                .apiBasePackage("com.hzp.micromall.auth.controller")
                .title("micro-mall认证中心")
                .description("micro-mall认证中心相关接口文档")
                .contactName("hzp")
                .version("1.0")
                .enableSecurity(true)
                .build();
    }
}